package com.angeho.entity.impl;

import com.angeho.dao.CallDetailDao;
import com.angeho.entity.CallDetailVo;
import com.angeho.lawyer.service.CallDetailService;
import com.angeho.vo.CallDetailParam;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CallDetailServiceImpl implements CallDetailService {
    @Autowired
    private CallDetailDao callDetailDao;



    @Override
    public CallDetailVo queryCallDetailByParam(CallDetailParam param) {
       List<CallDetailVo> lsit= callDetailDao.queryCallDetailByParam(param);
       if(lsit!=null && lsit.size()>0){
           return lsit.get(0);
       }
        return null;
    }
}
